import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
console.log("server start");

export default defineConfig({
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
    },
  },
  plugins: [vue()],
  server: {
    port: 3030,
    hmr: true,
    open: true,
    // proxy: {
    //   "^/api": {
    //     target: "http://10.60.97.177:8080",
    //     changeOrigin: true,
    //   },
    // },
    cors: true,
  },
});
